<script>
    document.domain = "http://datav.aliyun.com";
</script>
<script type="text/javascript">
    function reinitIframe(){
        var iframe = document.getElementById("test");
        try{
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height = height;
            console.log(height);
        }catch (ex){}
    }
    window.setInterval("reinitIframe()", 200);
</script>
<iframe  src="http://datav.aliyun.com/share/f74db7b825be8f1e3ae531b24e927e69" width="100%" height="800" frameborder="0" scrolling="no" id="test" >
</iframe>
